package cn.glutnn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.glutnn.entity.Discuss;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * (Discuss)表数据库访问层
 *
 * @author msh
 * @since 2024-10-25 09:32:29
 */
public interface DiscussMapper extends BaseMapper<Discuss> {
//    查询评论
    @Select("select * from tb_discuss where knowledge_id = #{id}")
    List<Discuss> selectByKnowledgeId(Integer id);
}

